package cn.ad.param;

import java.util.HashMap;

public class OsSearchParam extends AbstractPagingSortParam{
	
	/**
	 * 操作系统
	 */
	private Integer os;
	
	/**
	 * 查询ID 或名称
	 */
	private String search;

	public Integer getOs() {
		return os;
	}

	public void setOs(Integer os) {
		this.os = os;
	}

	public String getSearch() {
		return search;
	}

	public void setSearch(String search) {
		this.search = search;
	}
	
	public HashMap<String, Object> initSearchMap(Integer supplierId){
		HashMap<String, Object> map = new HashMap<String,Object>(2);
		map.put("search", this.search);
		if(this.os!=null){
			map.put("os", os);
		}
		if(supplierId!=null){
			map.put("supplierId", supplierId);
		}
		return map;
	}
	
}
